package cn.edu.just.firstjavaapp.l10.v2;

public class Circle extends Shape{


    int radius;

    public Circle() {
        this(0,0,10);
    }

    public Circle(int x, int y, int radius) {
       super(x,y);
       this.radius = radius;
    }


    public int getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }



    @Override
    public void draw(){
        System.out.println(toString());
    }

    @Override  //注解
    public String toString() {
        return "Circle{" +
                "x=" + x +
                ", y=" + y +
                ", radius=" + radius +
                '}';
    }
}
